package com.sinosoft.tencentmapserve.utils;

public class OCRresult {
    //姓名
    private String name;
    //性别
    private String sex;
    //证件号码
    private String idNo;
    //民族
    private String nation;
    //出生日期 1987-1-1
    private String birthDay;
    //详细地址
    private String address;
    //发证机关
    private String Authority;
    //国籍
    private String Country;

    // 证件有效期
    private String invaliddate;
    // 银行卡名称
    private String bankName;
    // 银行卡名称代码
    private String bankCode;
    // 银行卡号
    private String bankNo;


    // 识别结果返回代码 0： 成功；-1：失败
    private String code;

    // 识别失败返回信息
    private String msg;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        if ("男".equals(sex)){
            sex = "M";
        }else if ("女".equals(sex)){
            sex="F";
        }
        this.sex = sex;
    }

    public String getIdNo() {
        return idNo;
    }

    public void setIdNo(String idNo) {
        this.idNo = idNo;
    }

    public String getNation() {
        return nation;
    }

    public void setNation(String nation) {
        this.nation = nation;
    }

    public String getBirthDay() {
        return birthDay;
    }

    public void setBirthDay(String birthDay) {
        this.birthDay = birthDay;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getAuthority() {
        return Authority;
    }

    public void setAuthority(String authority) {
        Authority = authority;
    }

    public String getCountry() {
        return Country;
    }

    public void setCountry(String country) {
        Country = country;
    }

    public String getInvaliddate() {
        return invaliddate;
    }

    public void setInvaliddate(String invaliddate) {
        this.invaliddate = invaliddate;
    }

    public String getBankName() {
        return bankName;
    }

    public void setBankName(String bankName) {
        this.bankName = bankName;
    }

    public String getBankCode() {
        return bankCode;
    }

    public void setBankCode(String bankCode) {
        this.bankCode = bankCode;
    }

    public String getBankNo() {
        return bankNo;
    }

    public void setBankNo(String bankNo) {
        this.bankNo = bankNo;
    }

    @Override
    public String toString() {
        return "OCRresult{" +
                "name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                ", idNo='" + idNo + '\'' +
                ", nation='" + nation + '\'' +
                ", birthDay='" + birthDay + '\'' +
                ", address='" + address + '\'' +
                ", Authority='" + Authority + '\'' +
                ", Country='" + Country + '\'' +
                ", invaliddate='" + invaliddate + '\'' +
                ", bankName='" + bankName + '\'' +
                ", bankCode='" + bankCode + '\'' +
                ", bankNo='" + bankNo + '\'' +
                ", code='" + code + '\'' +
                ", msg='" + msg + '\'' +
                '}';
    }
}
